package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.NgsSjpzq;
import com.zhijian.medical.entity.vo.request.NgsSjpzqSearchVo;
import com.zhijian.medical.entity.vo.response.NgsSjpzqVo;

import java.util.List;

public interface NgsSjpzqMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据实验id删除
     *
     * @param ngsId
     * @return
     */
    int deleteByNgsId(Long ngsId);

    int insert(NgsSjpzq record);

    int insertSelective(NgsSjpzq record);

    NgsSjpzq selectByPrimaryKey(Long id);

    /**
     * 根据实验id查询
     *
     * @param ngsId
     * @return
     */
    NgsSjpzq selectByNgsId(Long ngsId);

    int updateByPrimaryKeySelective(NgsSjpzq record);

    int updateByPrimaryKey(NgsSjpzq record);

    int count(NgsSjpzqSearchVo ngsSjpzqSearchVo);

    List<NgsSjpzqVo> selectList(NgsSjpzqSearchVo ngsSjpzqSearchVo);

    NgsSjpzqVo selectVoById(Long id);

    /**
     * 根据实验id查询vo
     *
     * @param ngsId
     * @return
     */
    NgsSjpzqVo selectVoByNgsId(Long ngsId);
}